<?php
$idActuS=$_GET['idActu'];
//SUPPRESSION DES PHOTOS--------------------------------
$reqImg=mysql_query("SELECT * FROM photosactu WHERE idActu='$idActuS' ORDER BY idPhotosActu") or die (mysql_error());
while($dataS=mysql_fetch_array($reqImg)){
$Img=$dataS['NomImage'];
$idPhotosSup=$dataS['idPhotosActu'];
if(!empty($Img)){
	$ImgSup="../imagesActualites/".$Img;
	$ImgSmallSup="../imagesActualites/Small".$Img;
 	unlink($ImgSup);
	unlink($ImgSmallSup);
}
$reqSup3=mysql_query("DELETE FROM `photosactu` WHERE idPhotosActu='$idPhotosSup'") or die ("prob sup photo table");
//echo $dataS['NomImage']." ".$idPhotosSup."<br>";
}

$reqSB=mysql_query("DELETE FROM `actualites` WHERE idActu='$idActuS'") or die (mysql_error());

?>